import { createRouter, createWebHistory } from 'vue-router';
import type { RouteRecordRaw } from 'vue-router';
import User from '@/views/User.vue';
import Role from '@/views/Role.vue';
import Menu from '@/views/Menu.vue';

const routes: Array<RouteRecordRaw> = [
  { path: '/users', name: 'User', component: User },
  { path: '/roles', name: 'Role', component: Role },
  { path: '/menus', name: 'Menu', component: Menu }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;